package com.chuyu.cy.entity.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 周小白
 * @TableName chat_message
 */
@TableName(value ="chat_message")
@Data
public class ChatMessage implements Serializable {

    @Schema(description = "主键")
    private Integer id;

    @Schema(description = "发送者id")
    private Integer senderId;

    @Schema(description = "接收者id")
    private Integer receiverId;

    @Schema(description = "消息内容")
    private String message;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    @TableLogic
    private Integer isDelete;

    private static final long serialVersionUID = 1L;
}